package com.cherrish.demo.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author cherrish
 * @time 2019-03-07 16:15
 * @name TestController
 * @desc:
 */
@RestController
public class TestController {
    @GetMapping("/")
    public String welcome(){
        return "Hello WebLogic, it's "+ new Date();
    }
    @GetMapping("/hello")
    public String hello(){
        return "Hello, it's "+ new Date();
    }
}
